package router

import (
	ctrl "a-admin/web/controller"

	"github.com/gofiber/fiber/v2"
)

func InitPayRecordRoutes(r fiber.Router) {
	server := ctrl.NewPayRecordController()
	rg := r.Group("/pay/record")
	{
		rg.Get("/list", server.List)
		rg.Get("/:id", server.Get)
		rg.Post("", server.Add)
		rg.Put("", server.Edit)
		rg.Delete("/:ids", server.Del)
		rg.Post("/export", server.Export)
	}
}
